package de.gameduell.framework.error {
	import de.gameduell.framework.error.ErrorManager;		

	/**
	 * @author cbra
	 */
	public class GDError {
		private var _type:String;
		private var _message:String;
		private var errorManager:ErrorManager;

		public function GDError(aType:String,aMessage:String) {
			_type = aType;
			_message = aMessage;
			errorManager = ErrorManager.getInstance();
			errorManager.register(this);
		}
		
		public function get message():String{
			return _message;
		}
		
		public function get type():String{
			return _type;
		}
	}
}
